<?php

$result = "App exception report:" . "\r\n";

if (get_magic_quotes_gpc())
{
    $result .= stripslashes($_POST['exception']);
}
else
{
    $result .= $_POST['exception'];
}

$to = "joonas.limberg@gmail.com";
$subject = "Exception report";
$headers = "From: info@lasalara.com\r\n";

mail($to, $subject, $result, $headers);

?>